package com.example.demo.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by Hy on 2018/8/21.
 */
@Entity
@Table(name = "order_info")
public class OrderInfo implements Serializable{
    @Id
    @Column(name = "order_id")
    private String orderId;//订单号
    @Column(name = "subject")
    private String subject;//订单名称
    @Column(name = "body")
    private String body;//订单描述
    @Column(name = "money")
    private float money;//付款金额
    @Column(name = "seller_id")
    private String sellerId;//商户UID
    @Column(name = "alipay_no")
    private String alipayNo;//支付宝订单号
    @Column(name = "status")
    private String status;//订单状态
    @Column(name = "refund_money")
    private float refundMoney;//总计退款金额
    @Column(name = "create_date")
    private Date createDate;//创建时间
    @Column(name = "update_date")
    private Date updateDate;//修改时间

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public float getMoney() {
        return money;
    }

    public void setMoney(float money) {
        this.money = money;
    }

    public String getSellerId() {
        return sellerId;
    }

    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }

    public String getAlipayNo() {
        return alipayNo;
    }

    public void setAlipayNo(String alipayNo) {
        this.alipayNo = alipayNo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public float getRefundMoney() {
        return refundMoney;
    }

    public void setRefundMoney(float refundMoney) {
        this.refundMoney = refundMoney;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
                "orderId='" + orderId + '\'' +
                ", subject='" + subject + '\'' +
                ", body='" + body + '\'' +
                ", money='" + money + '\'' +
                ", sellerId='" + sellerId + '\'' +
                ", alipayNo='" + alipayNo + '\'' +
                ", status='" + status + '\'' +
                ", refundMoney=" + refundMoney +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                '}';
    }
}
